Add unit test for lang_links, and fix lang_links pagination.