only add getters for injected classes when pretending to be the object