fixed tests. Added tests for parser
implemented parsing logic
added one more test for parser