testing old key is deleted