Improve SQS integration test

* More resilient to inconsistent queue count.