change function name to UnitTest and modified debug output