routes tests and fixes