added test for overwrite existing file and file without extension