Modified test to use a File via Scanner