Passes JoinOptimizer tests