unittests: exit(1) or error
Merge pull request #1161 from Kijewski/unittests-exit-code

unittests: exit(1) or error