Added activation/desactivation of dup_mock