solved unit test for phonegap