To test a workflow, simply create the workflow in a testing workspace and ensure that it works according to your specifications. When the workspace is ready to be deployed in a production environment, export the workflow, then import it into the production workspace where you want to deploy it.
For information on how to import and export a workflow, see Section 11.9, Importing and Exporting a Workflow.