Testing a dictionary in the AST