Added Ping method and test