Refactored the id of devices for stabilizing tests, as deleting all devices invaded other tests. Made dependant of user the device-tests, to delete devices when deleting the correspondant user