Encapsulated parsing/checking details for ast unit test for arithmetic expr