adding mocha unit testing