Create KS-test