writeHeadBytes now relays on state.length and Makefile supports test-parser