Fix failing battery tests. Add a dummy battery listener to avoid updates in the middle of a test case