include the middleware and context processors in the test project
update middleware and getting request relations.