testing responses as json()