changed not so smart test, do not parse ast many times
1.10.15