channel handling, test, example