Finally got route test to pass using deepEqual for arrays rather than equal