Add tests for req.wantsJSON