Add graph node ordering test