re-factored tests for unique ids to use promises.