added unit tests for parser