Tests that after a navigation, scroll restoration from history takes precedence over scrolling to the hash fragment.