Slightly less stupid

* Render actually renders
* Tests properly stubbed so that there is no spurious output
Chop carriage return on the input

Also actually use the input in the production code