Fixed tests that were generating bad URLs