Add tests for buffered channels