set keys of the removed record to undefined
update tests