Add tests for dispatcher, receiver and tunnel.