The second call to the plugin was not working for me as --- qLdestroyed = true; --- on second run.

Changed the assigning of --- qLdestroyed = true; --- to happen before the onLoadComplete callback.
And have uncommented the  --- qLdestroyed = false; --- in the afterEach() function.