improved parser tests to check AST's