update to latest mocha, implement script for tests

adding `-R teamcity` to mocha command would make it report tests in TeamCity format