Fixed bug that ping function wasn't found

ping/2 is now exported from module bad.