added testing support with Mocha