Test case for task run