Merge "Add lifecycle tests to NetworkMonitorTest"