Improved coverage

Changed render.rb to be testable.