test BinaryParser