Unittests: add options that exits with status 1 when there are errors (for Travis CI)