test rekey modify-in-place