fix issue with test mode enabling in live mode and the plugin contacting
the wrong endpoint