Fix phonegap tests broken by e.g. edab1e5.