Functional tests

I think `status_response.body` is meant to be json so tests should probably use `json.loads` instead of `ast.literal_eval` (in case it's valid python but not valid json).