Add mocha tests

Test functionality of pieces of spell checking logic, specifically methods of the SpellChecker object.

Fixes #1