matrix tests added