test update for existing keys