modified testcase for offline mode