Sorted out connectivity helper ofr test that require an internet connection.