added test for invalid device id