Initial cut of testing with Karma, Mocha, Chai. Lots of work left to do.