Merge "Fixes test_device_tagging IndexError"