Add unit tests on Plugin