Bug 1097088 - Write test Battery Turn on Automatically options

Why do we assert against an integer here, but against a string at line 41?