Modify instance task
Modify unit test of instancetask
new test for instance task