Add nesting tests