Updated the code for testbench