Test for nested generator constructs