add test
add test for the kmp class