JUnit for parser class implemented