replacing instanceof tests in transport integration tests
with checking byteLength.