test_client: helpful errors for assert_error, fix timings for perf tests