added tests for 'deviceConnected' events.