[PATCH] test_driver: add testUpdateDeviceFlags implementation