window.location is untestable