Add a test targeting BZ 1097054

The test succeeds, which indicates that the bug has been fixed.