Added channel tests and an example.