test for device