made _get_parent_objects function one liner
tests for _get_parent_objects