unit testing inclusion for middleware render_page