Self-checking testbench