Added a test for the matrix creation.