testing a network connection using an emulator