fixed matrix test error