cleaned up test.sh to redirect time output to file and to only check small cases in benchmarks.