Move ajax request test method in base plugin class
Move the Js injection code in base plugin class