javascript tests using Mocha