add testcases:headfirst  & add outline for parsing