Save the current document to another location to allow testing the code???
Point the code to a different output location for the test???
Change the name of the output document for the test???
Unless there is some other reason not to run the code such as impact on other resources concern about "overwriting" an existing document is pretty far down the list of concerns that I would have.