fix adding task to an empty test
Merge pull request #676 from arnaudbey/fix-add-task-to-test

fix adding task to an empty test