add device detection test