Implemented mocha tests and tasks