unit tests for collapsing path separators
fix case sensitivity bug; add tests