remove useless delete patch operations; update and add tests