fix log message
Add nested function test
Merge pull request #260 from greggman/add-nested-function-test

Add nested function test