Make tests Python 3 compatible.

*tests.py* contained a bunch of `json.loads(response.body)` where `response.body` is a byte stream.  This PR decodes to `utf-8` before passing it on to the JSON decoder.