Fixed bugs with detailed log in UnitTest.pm.