Added tests for other cases of parsing the header