A class of ranks based test statistics for testing hypothesis of randomness (observations are i.i.d.) against the alternative that the observations become dependent at some unknown time point is introduced and its limit properties are studied.