fixed ping method, added mock tests
added mock files