unit test and wait for DOM before attaching view on ctl.navigate