Update tests for Battery Status API

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