fix some bug of test unit.