added test for device