add test with Mocha