refs #2674: Add test for unique terms returned by the old -> new category mapping
refs #2674: Fix the bug where not unique values would be returned
Merge pull request #84 from razvan-tache/task_2674

refs #2674: Test and fix for the bug