[PATCH v2 2/5] tests: add helper for DEVICE_DELETED events