Add test for s3token when we have a bad json reply

Change-Id: Iffd00c2b557e54b122f29f8b0ec7f7ab7a92d16e
Starting rewriting s3token tests.

Change-Id: I2e79b3ee5fc81ee65f1da898a5e1a1aee549ef27