Add a test case for nested language block in function