MSSpec: added support for injecting instances