Two cases argued Tuesday at the New Jersey Supreme Court test the legality of warrantless searches of homes where the suspects did not consent but family members did.

Both defendants sought to withdraw their guilty pleas to weapons violations, alleging that the searches violated their constitutional rights.