Fix a bug in the ShowNet test, ensure a variable is initialised at startup