Fixed a bug in class InjectionSpec in CDI module