Web GUI: Right click on the device → Rename.
Mobile app: Open the device by holding it → press the cog at the top right → rename it → save
As to identifying the device to which name, yes the only way is creating a test flow.
I thought the name was also in the Hue’s bridge app though, even for the tap’s