Fix core extension plugin method not returning instance on re-invoke for singletons.
Add singleton-related core extension plugin tests.