fixing lambda test

the old test prints inside a function. So even the lambda doesn't return
a thing the test passes. The new test prints the actual result of the
lambda so it should work. At least it does in some tests I did