create test/generate_matrix