Add tests for setting responses on res