Minor bugs of UnitTest were removed.