testing for phonegap workflow process