nesting and operations tests