add test for cross domain aliases, and redesign the validation