test($cordovaBatteryStatus): fix tests