Converted middleware tests to use RequestFactory.