Bug/avoid duplicated virtual ips/goneri

Hi,

This merge request comes with:
- a little changes to ensure virtual_ips or the generated file won't work.
- some unit-test changes and clean up