testing offline detection