Device manager UT code

Change-Id: I04e34ecf90c1b2d2fe6aaba4fa7a0da924313d1a
Merge "Device manager UT code"