Fixed the Matrix unit tests.