Starting to add tests for matrix module