adapted to new constructor of Task and Testcase

lerks/cms@41d37cd makes YamlImporter broken. This patch fixes this problem.