Fix alias function and test