Reworked tests to use ByteBuffers assembled in place in the tests.