fixed p-suffix kernel and added tests for it