testbench: add test for RainerScript optimizer