modify kmp test