Fixed test cases for res.format

1. `res` was marked as `req`
2. Expected result objects were quoted, causing the tests to fail