Added tests for LanguageDetect class