Tests for merging items with the same name but different categories where the last one in the list isn't the desired one
Fix for merging items with the same name but different categories