additional testcases for hw7 + output file