fixed the test plugins and added more global vars