fixed tests on phonegap