Before this commit, the router service used in tests was almost entirely mocked and some of the mocked features didn't correspond to their original counterparts. Now, the actual router service is used in tests and the browser object is mocked instead, allowing to correctly test the routing features.