Add test for nested loops. Cleanup of ProcessGenerator