Modified battery management, added notification test.