Fixing UI tests and adding tests for Access::doAsSuperUser.