Fix unit test that violates recently added validation in core plugin.
(cherry picked from commit 45ca33b)