Added the unit test framework and wrote some basics tests.