Lawyers for a registered sex offender appeared in court Thursday to challenge the constitutionality of a law under which he was charged for going to church.