changed runtests.jl to output files to output directory