unit tests for get_device_by_name added