Fix tests.
Add a test for initial hash redirecting.