Refactored test to do integration testing only on routes