Adding Mocha tests and documentation