test for res.json