updated test, added debug printing on headers