Moved PMTest to tests package. Small refactorings in ASTUtil, added unit
tests.