test extension + minor cleanup in ContextMeta/ServiceFactory