[PATCH 2/5] dinput/tests: Fix incorrect index when removing child device.