testCreateOutputForExistingFile