Made tests AST based.