Testing connection + credential cashing