Fix case errors with nec

Nec and nec are of course the same, the past test wasn't case
insensitive.