Add tests. yay!

Use Mocha for running test.
Chai for test comparisons.
Sinon to stub the console.log messages.

Open alltests.html to run the tests.