better domains handling / tests