fix req.body, add test scripts