Fix memory management bug with netgroup_info field.
Update tests to use group lists.