Bug 1050679 - Use wifi network information of state change event.

Let's add an unit test for `_updateNetworkStatus`