add unit tests for SquareTreeParser