Clean up tests cases for match route to middleware.