add demo test and mocha opts