Adding sqs unit tests to the 4.2 branch

As mentioned in #4829, here's the PR for the 4.2 branch.