Fixed tests state restore for links activation