added code to fix bug 8285
Merge branch 'master' of github.com:hugllc/HUGnetLib
update test code and fix bug 8285