Minor refactoring of SelfAssignment cop

unify offense message
tests should not use the same code its testing