added tests for parser