Export get-unique-id for tests.
Some initial tests.