[SPEC] fix ordering bug in test