test cases related to anonimous functions