battery: add AC test, move battery status test
Add test to verify if the power charger is connected. Move battery status test earlier, so that the status is reported even if the battery level is too low.
Signed-off-by: Laura Nao laura.nao@collabora.com