setup routes and test