Test the render function properly