fixed testbench bugs