I didn't pass my test until I was 30, took me a fair few lessons (more than I would have taken if I were 17 I'm sure) but eventually it just 'clicked'. I would say just take your time and as long as you have a decent instructor they will be able to accurately judge when you are ready to take...