Migrate from jasmine test framework to Mocha

Mocha has much more functions and it has better interface for async testing