fixed test file corruption problem

* gentest.py: fixed test file corruption problem
2 files changed