add test for specifying lambda as attribute