fixed tests and add test ks"s