Allow tests to be run from outside test dir.

Just a small change to allow a user to execute `node test/test.js` to run the tests.