Fix tests for python 3 by parsing responses and comparing string instead of dicts