Fix the 'test' mode of the 'network' state module.  It hit false positives due to inconsistent newline handling.