Add function for domain gestion and test