matrix tests, for det