fixed test cases that tried to send the response header twice, which were caught by nginx 1.5.4.