Unit test : viewState finished