Modified read tests to reflect the byte buffer's updated position.