fix testfile writing