some tests for ByteBuffer