fix and debuging the unit server registration state machine mds layer need to be tested