rework tests to use a temporary directory
rework file benchmarking