Testing phonegap with Parse and AngularJs