test for ByteString type