[CB-2200] Remove test dependency on deprecated device.name
(cherry picked from commit d9bf705c711e9ba47853574ec08ef77c6d988025)