Makes tests a bit more cross-platform

Use the UUID library rather than the lazy way of shelling out to `uuidgen`.