This test was comparing strings and bytes, and had no chance of ever
passing. It is skipped if not run as root, which is probably why the
failure does not show up often.
We now cast everything to integers, since that is what we are ultimately
interested in.
Change-Id: Ia23e687cf13439c15b562de909455324bba99dbb