Added test to demonstrate NullReferenceException when using InjectionFactory to register a type