improving test with assert File.exist