[JE, MR] {refactoring} Refactoring testOnlineStatus