Applied the changes which were suggested by @tleyden . and Fixed testGoOfflinePusher() issue which caused by trigger WAITTING_FOR_CHANGES at state of OFFLINE.