Man accused of hiding camera in mall bathroom heads to trial