Update ks_test