Basic test coverage for BinaryProtocol.