fix testbench write result