add the server's reponses api samples tests

changes the response to return a dict in json, works for json
issue with xml