Add test when a task fails.
Merge pull request #5 from xethorn/mo-14-dec-add-tests

Add test when a task fails.