add test cases for AST_replaceConstants
DRY