Handle an underscore-prefixed function names

Symbol names are prefixed with an underscore in a symbol table so
we have to ignore this while searching for the function name.
Update test cases to cover an underscore-prefixed function names