Add test for overriding of object methods and merging in duplicate annotations