uuid: modify exports, add test

some stuff I noticed reading through this code. Feel free to take it or leave it!