Fixed the editing and deleting tests