fdo#52076 unittest

Change-Id: Iae10f9728db4c90c4a55ad692b32cddeb7adc48a
Reviewed-on: https://gerrit.libreoffice.org/11277
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>