Fix wrongly implemented plugin test