Fix bug with PMX
Add test for position clash pmx