Added tests for the entire library.

These can be run with the following process after cloning:

```coffee
    npm install
    npm test
```