Handle failures more gracefully in setArg testing