test alias removal behavior