test for ordering bug