byte_queue and tests