Add more test cases for the Discovery class.

* testEnableThrowsExceptionIfNoListenerIsSet()
* testDisableWithoutEnablingWillThrowException()