Moore testbench code