Update response-header test cases and fix bugs