added mocha test for ping
added mocha test for ping