added test to reproduce attr_accessor issue