Implemented a unit test for service discovery;