Put matrix code test in var