Switch to hash router in tests, so that it works inside phantomjs