Added unit test to assert that the object extractor searches on all methods event inherited ones.