fix bug of "fclose"; add test for zipping a large amount of files in sequence