test: initRoutes (finish)
refactor and fixes for some other tests.