Use Settings.testMode instead of passing parameters