map-path.test.js updated to test for trailing slash