Adding test coverage on router component