change testbench and hazard logic