added complex nesting test