fixed test errors caused by server-modified headers