Fixed render tests
Replaced "attr" (deprecated) to "attr_accessor"