Added tests for some viewState events

Added tests for viewState.titleUpdated, viewState.leftButtonsChanged
and viewState.rightButtonsChanged.