responds with json, working tests