Testing removal of devices