Test of phonegap based on alert generated by stop button