repair unittests (permissions)