Testing without window.location