Correct the test on the number of eigenvalues