Implemented ping() method and test methods for ping and basic_connectivity

Currently struggling to find a way to test that the `ping()` method prints out what is expected