Create PingFactory test case
Create PingFactory
Use PingFactory and mock ping process
Use PingFactory for more testable code
Use PingFactory for more testable code