fixed bug in testbench