added test for custom mode lang_ substituation