Dialog Tests: move dialog initialization to top in order to make stacking work for autocomplete and selectmenu