add run_tests.sh and write test for api
remove .idea
complete testing demo
suggest some config combination for mocha