Rank tests with estimated scores and their application