Add code quality test for self assignments

done