Fixed renders tests and replaced "attr" (deprecated) to "attr_accessor"

Hi,

I'm just applied some adjusts. I fix the render tests (test/render.rb) and replaces the deprecated "attr" to "attr_accessor".

Hope that is useful,
Best!