nested_objects tests and inheritance issues solved