added alias validation and unit tests