Added unit tests

Mainly was looking for a simple project to practice unit testing in Javascript. Figured I'd upload the added tests. They're a direct reflection of the readme examples.