Fix delete data and update test