Add test for self-aliases.