reworked testbench