minor improvement to matrix multiply test