anchor.diff:                                           {"qos2/test", 2}]),
       SubackWithNack = packet:gen_suback(3, [0, not_allowed, 2]),
       {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
  -    enable_on_subscribe(),
  -    ok = gen_tcp:send(Socket, Subscribe),
  -    disable_on_subscribe(),
  +    ok = gen_tcp:send(Socket, Subscribe),
       ok = packet:expect_packet(Socket, "subackWithNack", SubackWithNack),
       ok = gen_tcp:close(Socket).
   
  
positive.code:     Subscribe = packet:gen_subscribe(79, "qos1/test", 1),
      Suback = packet:gen_suback(79, 1),
      {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
      enable_on_subscribe(),
      ok = gen_tcp:send(Socket, Subscribe),
      disable_on_subscribe(),
      ok = packet:expect_packet(Socket, "suback", Suback),
      ok = gen_tcp:close(Socket).
  
  
negative.code:     Subscribe = packet:gen_subscribe(53, "qos0/test", 0),
      Suback = packet:gen_suback(53, 0),
      {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
      ok = gen_tcp:send(Socket, Subscribe),
      ok = packet:expect_packet(Socket, "suback", Suback),
      ok = gen_tcp:close(Socket).
  
  