Fix the test using onURLChange