Fix wrong URI test to work both locally and on Travis