Add tests

Added one test, seems to be failing.

To run:

    $ npm install && npm test