Added unit test for unique generator