Deakstadieđáhus: Theory of rank tests