Unit tests: Added test to make sure that when attaching to beforenavigate it is actually fired when the location is modified.