Router implementation and Karma test.