Fix unit test that violates recently added validation in core plugin.