Add unit test for identity.tasks.removeTasks