Bug 1097088 - Write test Battery Turn on Automatically options

I'm afraid we have to maintain twice this not-trivial function in the future, but okay.