setup test file with output to pre