Modified init function to only execute when the plugin is not active.
Added some unit tests.
Moved isActive check to contruct function istead of init function.