added tests to cover get_devices()