Test all the TypeErrors raised by an AST object