DiscoveryThread: receiveIntents() should not be public.
DiscoveryThreadTest: Add another test case.

* testSocketWillBeClosed()