could you add a unit test that covers the cases? i guess we do not yet have one for handling aliases.