fixed bug in testbench preventing snapshot to be written