The 24-year-old was on his way to his driving test when he was stopped by police.