fix test to not rely on execution of processed / ack order

also, make sure the order is consistent (as much as possible) when calling ack to processed