add asserting : test the number of headers