Completed first unittest for data manager