Changed tests from Jasmine to Mocha/Chai.