add tests for closures which are based on the tests from aspectbench