Adding ranked vrsions of ks and ad tests