test(injecor): instantiates a provider if given as a constructor function test