Fixed DiscoverTest again. Added unit test for unacked messages.