move render into test_helper

the render function was not part of the core library, and has been moved
to test_helper for better abstraction.