Better automated tests

Use Mocha and Chai for running automated tests instead of Jasmine.
Why the timeout?