[XWALK-DRIVER] refact and test device manager module