CMS-4161 Require should only be used within a module. Fixed tests.