added test logic for offline objects