added a test for device discovery