tools/cardiff/test_perf_level.py: fix test