protects against duplicate aliases
adds test coverage for aliases