[CB-4062] Fix for test that does not wait properly.
[CB-4062] Fix for test that does not wait properly.

ollie314/cordova-mobile-spec,ollie314/cordova-mobile-spec,ollie314/cordova-mobile-spec,polyvi/xface-mobile-spec,corimf/cordova-mobile-spec,apache/cordova-mobile-spec,apache/cordova-mobile-spec,corimf/cordova-mobile-spec,ollie314/cordova-mobile-spec,ollie314/cordova-mobile-spec,corimf/cordova-mobile-spec,apache/cordova-mobile-spec,polyvi/xface-mobile-spec,polyvi/xface-mobile-spec,apache/cordova-mobile-spec,apache/cordova-mobile-spec,corimf/cordova-mobile-spec,corimf/cordova-mobile-spec