added support for HTTP-AcceptLanguage-Header as language; fixed failing tests that occurred due to the previous changes