added test for byte array conversion.