add guid function
tests for guid