report correct exit code for unit tests