Add code quality test for self assignments

fixed