Renamed rounding function round2dec to round2digs
Added code for some HUnit and QuickCheck tests.