create a new test file, calling fwd and inv functions 10^4 times