Added proper test cases for stack frame, shadowing and external linkage