fix integration test and add empty task test case