Start of unit testing

Added some unit tests for the 'common' module