Add test for bad return code to tool
Fix test for bad return value
Merge pull request #3 from Markaos/dev

Add test for return value