Test using direct byte buffer