Prevent unit tests from panic'ing.