switch to turn on/off assert in the handleFail
cosmetic changes
Merge pull request #164 from nem0/Unit_Tests

Unit tests