add test for person.orphan setting, streamlined _get_persons_query