Checking matrix weighting test