Fix tests.
Don't actually update location.hash if the new location is the same as the old.