Fix unit test for SPR-11919

Issue: SPR-11919