Fixed parsing the header bug, finished implementing rest of JUnit test cases