test for having a method with the same name as an accessor