Simpler test for paths