test get_parent_class method