exported the hex_to_bin function from uuid and added tests around it