defined AST and write some tests.
remove unused testing files