fixing the matrice5d test and the 4d grad