Tests: Update stateserver test for defined ordering
StateServer: Update stateserver for ordering rules.