Fix typo
Add bracket syntax
Change test for bracket syntax
Add test of anonymous function