updated routes and tests