Revert "Fixed plugin_generator test"

This reverts commit fefa8ae9a172835fb6b8aef7d1dd46d58eecd49f.

As this commit  22a1a5ac8c4631f29cfeac451c361e8da1dd2261 has reverted all changes so this plugin generator also needs to fix.