Fixed the version part of the uuid for v4. Seems the version was being generated as 0. oops.
Updated phpunit handling and added code coverage.