changed testing framework to mocha + chai