fixed some errors in routes test