add unit tests for the parsing part