Telefona gönder: Theory of rank tests