[ADD] More test cases for GH-1001.
[FIX] Better detection of duplicates in AxisPaths.
Merge pull request #1010 from LeoWoerteler/gh-1001-b

Better detection of duplicates in AxisPaths