Headers parsing, some validation unit tests