Feature/testrst

Add tests for detecting file extensions and for returning a RenderResult