testing deferred objects to check phonegap availability