Add unit test for alias retrieval