local phonegap testing is not so straightforward