adding comment to context_factory
updating test for context_factory