Change validation function in install plugin test.
Merge pull request #1215 from Automattic/fix/install-plugin-test

Change validation function in install plugin test.