First, click on the unit you want to rename. Then click on the units name.
For example, if you have clicked on a slinger then click the word slinger that is in the unit info that appears. Finally change it to whatever you want it to be. The achievement should then pop.