0005830: getCategoryIds() returns duplicates if parent has same categories: improved test