adapt YamlImpoter to new constructor of Task and Testcase

lerks/cms@41d37cd makes YamlImporter broken. This patch fixes this problem.

This patch is a resubmission of https://github.com/cms-dev/cms/pull/121 .