Testing camera on phonegap