Improve testing and coverage of netconf class