     Timer.sleep(50)
 
     assert {:ok, {:pdu, enquire_link_pdu}, _rest_data} = Server.received_data(ctx[:server]) |> SMPPEX.Protocol.parse
-    assert Pdu.command_id(enquire_link_pdu) |> CommandNames.name_by_id == {:ok, :enquire_link}
+    assert Pdu.command_name(enquire_link_pdu) == :enquire_link
   end
 
   test "cast with stop", ctx do

      {:handle_send_pdu_result, _, :ok},
      {:handle_resp, submit_sm_resp, _}
    ] = ctx[:callbacks].()
    assert Pdu.command_id(bind_resp) |> CommandNames.name_by_id == {:ok, :bind_transmitter_resp}
    assert Pdu.command_id(submit_sm_resp) |> CommandNames.name_by_id == {:ok, :submit_sm_resp}
  end

  test "handle_resp with unknown resp", ctx do

  alias :timer, as: Timer
  alias :sys, as: Sys

  alias Support.TCP.Server
  alias SMPPEX.Session
  alias SMPPEX.Pdu
