refactoring
fix Error call in TestSetRequestHeader