Test cppunit

Basics of the units tests are in place using the CppUnit framework, ready to put back in to the main code