improve header tests
ifd sketch code