Add code quality test for self assignments

> The pr I sent had added processing for the multiple items you send in bad.

See my comments in that pr.

> A test for this new function should also be added as there are for other quality tests.

Ok.  Any other comments?