test($cordovaBatteryStatus): fix tests

fixes #345