Test getting current function's name from stack trace