test offline/online