fixes isValidLang, tests passing