[PATCH 05/20] test: Use a simple variable to record removed device