Add test to assert node order