test matrix dependence of KSP