remove the require fs from a test
shim .indexOf for <es5