Update tests.py - fix for Python 3.

response.body is a bytes object;  `TypeError: Type str doesn't support the buffer API` in Python 3; changed to use response.text instead.