Fixed unit tests after activatinguiobject refactor.