Tests for delete task method.