fix mocha sample test