added test cases for parsing
added tests for parsing, caught parenthases parsing bug