fixing tests that check for api routes