Fix data manager shutdown and add data manager unut test

- make data manager stop command actually work ,
- Add data manager robustness and performance unit test