Rank test of trend when data are incomplete