Ckeaned up some of the tests.
I think the unit tests from PERL have all been copied over