Migrate from Jasmine to Mocha for tests