Restore render method in ViewContext
Refactor Template and Render tests
Added tests for Endpoint