Test Domain class.