Propagate error code when test cases are failed
Merge pull request #31 from Constellation/fix-error-code

Propagate error code when test cases are failed