Fix function definition warning check in CBN

Added Function redefinition with langblock testcases