fix a staticLayout test which failed after the intro of view statecharts: the view was not added to the DOM in the right way

The view was added to the DOM in a way that was incompatible with the new statechart machinery and caused the test to fail