fix and test uuidCompare