Fix ios plugin to respect debugMode and testMode checkboxes