add mocha testing environment and install modules