Adjust headers_test to fix failing test cases