adding a test case for nested ifs + loops with callbacks (passes)