fix issue 871 with 2 tiles
add test to fix 871 with 2 tiles
Merge pull request #878 from deshapriya/fix-localcomparator-871

Fix localcomparator 871