Add code quality test for self assignments

Why you against the current change?