Asymptotic properties of rank tests under discrete distributions