Angular unit testing window.location
This is a live search for the best solution