MOB-1589 add unit tests for the language detection