added tests for offline/airplane mode