Unittests: add options for terse output and exiting with error status (for Travis CI)