refactor unittest with "getRequireContextForExtension()"
extend extension-flexibility