[test] fix testfiles 1 and 2
[feature] first native implementation of header detection