Add test for router.
Add tests for gateway.
Add coverage reporting.