testbench: fix recent regression, improve error reporting