Bug 10986: (follow-up) add unit tests for getLanguages() and language filter