Better automated tests

Use Mocha and Chai for running automated tests instead of Jasmine.
If this fails, you won't know how, all you get is a timeout. Try and use onFailure for a more informative report. Goes for _both layers_.