read-tree: add tests for confusing paths like ".." and ".git"