Added model and matrix manager tests.