Improving tests for render method in n.renderFunc