set up routes and cleaned the tests