Add foundation for tests

Run using:
```
$ npm install
$ npm test
```

Would welcome feedback as to whether this runs without further effort on Windows.