fix viewState.html test