Added unit tests using CppUnit