More informative error message in test for setting multiple matrix entries