improve C++ unique_id unit tests (#7)