fixed matrix tests