could you use a covariance matrix that is not invariant to permutation? This way you check whether the code permutes correctly