test: close plugin manager in tests cleanup (#10904)