A teenage student from Wakefield fled halfway through a driving test after being caught posing his 30-year-old friend.
Nineteen-year-old Carwan Ahmid Rahim, of Linton Road, Wakefield was pretending to be Ahmad Fattah Karim, 30, in a bid to pass the driving theory test on his behalf, a court heard.
But when investigators turned up at the test centre, he fled halfway through the exam but was chased and caught.
The asylum-seeker, who studies at Wakefield College, admitted fraud along with Karim, of Nowell Crescent, Leeds.
A court heard that a man claiming to be Karim had already tried to sit the test at Harrogate last March but was rejected because an officer was not satisfied with identification documents.
Investigators from the Driving Standards Agency went to the test centre
at Chesterfield, Derbyshire, last July 27, where Karim was due to sit the test again.
Rahim produced Karim's driving licence and credit card and started the
examination, Chesterfield Magistrates were told.
Robert Carr, prosecuting told the court: "Part-way through the test he jumped up and tried to make off. There was a short chase and Rahim was apprehended."
Magistrates adjourned sentencing until tomorrow for probation service reports.
Denney Lau, for Rahim, said he came to the UK to seek asylum two years ago after his father was killed in a bomb attack on the family home in Iran.
He said: "He has serious injuries to the left side of his body. He came here to be safe again. He was very naive and took the test out of his good nature.
"He wanted to help the co-defendant, who had language problems. He is not a dishonest person. He studies English and IT at Wakefield College
and works part-time as a car valeter."
Gavin Haigh, for Karim, said: "They are friends and no money was changing hands. He knew it was wrong but the problem was his own illiteracy, which he feared would have shown up if he had taken the test himself.
"It's more of a confidence fraud."