added test.js so that the tests could be run with `npm test`