tests for matrix mean