testbench almost working