add test to verify output files; correctly handle lambdas