adding some test cases for Plugin class