Add some guid comparison and test functions.

Signed-off-by: Peter Jones <pjones@redhat.com>