Testing if router fails in phonegap