created ping monitor and added unit tests