Mocha tests with assertion