Added logging messages to track the sqs progress.
Fixed test to query multiple times for sqs messages.