added error test for edit task #6