testfile generator
simplify testing