As regards this:
I haven't found a way to test on the emulator, sorry. There's no WiFi setting and the button in the developer tools doesn't seem to work properly for me.
I think you can turn off the emulator's wifi by shutting down the computer's wifi for a moment.