update test.js so that split works on mac