Add a check to protect from multiple plugin class instantiation + add a GLOBALS reference to the plugin class so that we could access it from test suite
Extract common testing code into a base testcase class