Fix compilation of NetTest unittests