Fix plugin api tests even better