Fixed nesting test