ch4 ep18 - Completed a test for generating a file