A driving test cheat has been jailed after taking a theory test for his friend who had failed 15 TIMES.