Rework S3Token middleware tests.

- Split between good and bad tests.
- Add more tests to get to 100% coverage.

Change-Id: Iffd00c2b557e54b122f29f8b0ec7f7ab7a92d16e
Merge "Rework S3Token middleware tests."