Update tests for battery chagring scene

- According to Battery Status API CR on 09December 2014,
we must get BatteryManager object by navigator.getBattery()
instead of navigator.battery