Fixed UnitTest on Mac OS