Avoid triggering hashchange twice in the test