fixed window.location.href test.