anchor.diff:      ok = mqtt5_v4compat:expect_packet(SubSocketOffline, "suback", Suback, Cfg),
       ok = gen_tcp:send(SubSocketOnline, Subscribe),
       ok = mqtt5_v4compat:expect_packet(SubSocketOnline, "suback", Suback, Cfg),
  +
       Disconnect = mqtt5_v4compat:gen_disconnect(Cfg),
       ok = gen_tcp:send(SubSocketOffline, Disconnect),
   
  +    wait_for_offline_event(SubOfflineClientId, 500),
  +
  +    %% now let's publish
       PubFun
           = fun(Socket, Mid) ->
                     Publish = mqtt5_v4compat:gen_publish("shared_sub_topic", 1,
  -                                               vmq_test_utils:rand_bytes(1024),
  +                                                       <<Mid:8, (vmq_test_utils:rand_bytes(10))/binary>>,
                                                  [{mid, Mid}], Cfg),
                     Puback = mqtt5_v4compat:gen_puback(Mid, Cfg),
                     ok = gen_tcp:send(Socket, Publish),
  
positive.code:     SubConnectOnline = mqtt5_v4compat:gen_connect(Prefix ++ "shared-sub-sub-online",
                                                    [{keepalive, 60},
                                                     {clean_session, false}], Cfg),
      SubConnectOffline = mqtt5_v4compat:gen_connect(Prefix ++ "shared-sub-sub-offline",
                                                     [{keepalive, 60},
                                                      {clean_session, false}],
                                                     Cfg),
  
negative.code:     Connack = mqtt5_v4compat:gen_connack(success, Cfg),
      Prefix = vmq_cth:ustr(Cfg),
      PubConnect = mqtt5_v4compat:gen_connect(Prefix ++ "single-offline-pub", [{keepalive, 60}], Cfg),
      SubOfflineClientId = Prefix ++ "single-offline-sha-sub",
      SubConnectOffline = mqtt5_v4compat:gen_connect(SubOfflineClientId,
                                                     [{keepalive, 60},
                                                      {clean_session, false}], Cfg),
      Subscription = "$share/singleofflinesub/shared_sub_topic",
  