added test making if file already exists