Add support for dryRun which puts the API into test mode