fix declared_order test.