Added excludedHeaders to check for headers that shouldn't be there.