add tests for function variables
add a note for a function variable for built-in function
add exception tests for function variable
fix a format string