+ way = create(:way, :with_history, :version => 4)
+ way_v3 = way.old_ways.find_by(:version => 3)
+ way_v4 = way.old_ways.find_by(:version => 4)
+ node_a = create(:node, :with_history, :version => 4)
+ node_b = create(:node, :with_history, :version => 3)
+ node_c = create(:node, :with_history, :version => 2)
+ node_d = create(:node, :with_history, :deleted, :version => 1)
+ create(:old_way_node, :old_way => way_v3, :node => node_a, :sequence_id => 1)
+ create(:old_way_node, :old_way => way_v3, :node => node_b, :sequence_id => 2)
+ create(:old_way_node, :old_way => way_v4, :node => node_c, :sequence_id => 1)
+ node_tag = create(:node_tag, :node => node_a)
+ node_tag2 = create(:node_tag, :node => node_b)
+ node_tag3 = create(:node_tag, :node => node_d)
+
+ nodes = OldWay.find(way_v3.id).get_nodes_undelete