Clean up unit testing with Mocha, Sinon and Chai.