switched to mocha unit tests