Use Mock instead of Router and Route, to simplify the test.