Fix 'plugin add' tests