added reprocude tests for #346 to demonstrate that spawning subqueries of a parent lambda leads to wrong queries fix #346