Fix to plugin unittest.