added support for render_lang() use in modules plus adding and fixing tests