iotests: Add test for the regression fixed in c8bf9a9169