Add offline mode tests