Fixes some test of ByteBuffer