proper unittest exit code based on tests result