Gravar-mail: A model-informed rank test for right-censored data with intermediate states