Byte utilities and tests