Errors in a task are convented to RuntimeError
Improved the test_task decorator
Merge pull request #1412 from gem/task-runtime-error

Errors in a task are converted into a RuntimeError