Added ContextFactoryTest