test code of kstest