test script for running mocha test cases automatically