adds matrix utils for tests