Fixes Issue #317: Check output with Entity Translation enabled.

So you can also use the API to get the right language without mocking with the ``global $language`` variable.