[BUGFIX canary] Since AutoLocation's use of window.history/location is mostly untestable this refactors the tests so that we make sure #9958, #9956 don't regress again
Merge pull request #9964 from jayphelps/autolocation-regress-prevent

[BUGFIX canary] AutoLocation test refactor to prevent #9956/#9958 from happening again