Add tests for the router core.
Add tests for the router core.