Invia SMS: Theory of rank tests