Fix tests.
Save route.previous only once. Closes gh-653.