modified plugin in unittest