fix a task test bug