DiscoveryThreadTest: Add another test case.

* testOnErrorListenerWillBeNotified()