completed generateOutputFile test