add discovery unit test.