update test and use _diag_inds_n to get diagonals