Added UnitTest.c for testing purpose