fixes #2732
fix tests
Merge pull request #2761 from digi604/fix-2732

fixes #2732 (language in db but not in CMS_LANGUAGES)