Reduce numbers of threads and trials in tests.