fixed plugin unit tests