Throw correct error for tests intended to fail parsing, fix mistakes in AST conversion