added more test case and also removed unused code
added plugin autoloading features by using locator