   end
 
   test "fetch" do
-    {:ok, storage} = PduStorage.start
+    {:ok, storage} = PduStorage.start_link
     pdu = %Pdu{SMPPEX.Pdu.Factory.bind_transmitter("system_id", "pass") | sequence_number: 123}
 
     assert true == PduStorage.store(storage, pdu, 321)

  end

  test "expire" do
    {:ok, storage} = PduStorage.start
    pdu1 = %Pdu{SMPPEX.Pdu.Factory.bind_transmitter("system_id1", "pass") | sequence_number: 123}
    pdu2 = %Pdu{SMPPEX.Pdu.Factory.bind_transmitter("system_id2", "pass") | sequence_number: 124}


  end

  test "stop && lost_pdus" do
    {:ok, storage} = PduStorage.start_link
    pdu1 = %Pdu{SMPPEX.Pdu.Factory.bind_transmitter("system_id1", "pass") | sequence_number: 123}
    pdu2 = %Pdu{SMPPEX.Pdu.Factory.bind_transmitter("system_id2", "pass") | sequence_number: 124}

    assert true == PduStorage.store(storage, pdu1, 1000)
    assert true == PduStorage.store(storage, pdu2, 2000)

    assert [pdu1, pdu2] == PduStorage.fetch_all(storage)
  end

end
