add test for function invocations (including lambda)