test opportunistic write