add test/test_client_devicemgrt.cpp