Adds stubbing for testing methods without internet connection