Add tests for controlling charging and wake state.