[JE] {refactoring} Refactoring testOnlineStatus