new api Injector.hasManagedInstance, fixed theardown method.