catch all errors in the unittest