Fix update of battery status for MAX! binding

Fix the update of battery status for MAX! binding. Battery will be initialized with UNKNOWN and updated on first message from MAXCube.
Also added test for the Battery class.
Fixes #1838.