added test for detect language