matrix test was slightly changed