Positions in AST, errors and tests