test to check for lost api connections