reverted channel type to []byte, fixed tests