add a testutil module
make mktestfile work again