Add more lambda tests in modules. This is useful when we started to work on https://github.com/llvm/llvm-project/issues/57222.