fixes tests after attr_accessor change