Added unit tests for router.