Add fromStorageRow -> toStorageRow roundtrip test

Meanwhile added a helper testcase that will generate a $this->revision so we
don't have to manually build revision objects in new tests.

Change-Id: Ib058c67fdc844b3162d0f31ff2c0db587971c09f