Fixed lookup issue in regression test
Fixed for_each