moved from jasmine to mocha for tests