fix(test): result is not defined on error
Merge pull request #247 from douglasduteil/fix-test-result-no-defined-on-error

fix(test): result is not defined on error