add data disk manager test code. and several bug fixed.