Added unit test to assert that the object extractor searches on all fields even inherited ones. Fixed the implementation.