test safe_run() basic error handling