Add failing test case
Refactor tests to use before and after
Fix double slash in urls when pushState enabled