add more tests. support pipeline subtasks