KMat-testing fix