fdo#77300: Add more test to cover the shared formula case.

Change-Id: I076cb7b8d5f9b51e7337a512bb86efbabee021a8
fdo#77300: Do the same for the shared formula case as well.

Change-Id: I560b0beabe81907e3f85d8845041a9df25d2200d