added unit tests around ping behaviour
additional polish on tests