client/tests/benchmarks: Fix minor bugs in the benchmark scripts.