updated injector to not wrap method calls on objects defined in the context or window + tests