Added some unit tests.
Merge pull request #7 from goinstant/mattcreaser/tests

Added some unit tests.