tests: Test coverage for res.set