testing for offline mode