test and fix standardizePath() & isValidPath(), update test.js

rename test.js to more descriptive, acceptance.js
Fix many bugs, refactor, and pass more tests.