add test case for testing a specific error
fix stackoverflow error on the methods setXXXHeader()
remove unused includes